import { selList, selById, add, queryAllExportData, edit } from '@/services/followUpListApi';

export default {
    namespace: 'followUpList',

    state: {

    },

    effects: {

        /**
            * 分页
            * @param payload
            * @param call
            * @param put
            * @returns {Generator<*, *, *>}
            */
        *selList({ payload }, { call, put }) {
            const response = yield call(selList, payload);
            return response;
        },

        /**
            * 编辑
            * @param payload
            * @param call
            * @param put
            * @returns {Generator<*, *, *>}
            */
        *edit({ payload }, { call, put }) {
            const response = yield call(edit, payload);
            return response;
        },


        /**
     * 详情
    * */
        *selById({ payload }, { call, put }) {
            const response = yield call(selById, payload);
            return response;
        },

        /**
    * 存入正式库
   * */
        *add({ payload }, { call, put }) {
            const response = yield call(add, payload);
            return response;
        },

        /**
        * 点击导出列表信息
        * @param payload
        * @param call
        * @param put
        * @returns {Generator<*, *, *>}
        */
        *queryAllExportData({ payload }, { call, put }) {
            const response = yield call(queryAllExportData, payload);
            return response;
        },






    },

    reducers: {

    },
};
